import request from '@/utils/request'

export function ticketAdd(data) {
  return request({
    url: '/do?c=420001',
    method: 'post',
    data: data
  })
}

export function ticketList(data) {
  return request({
    url: '/do?c=420002',
    method: 'post',
    data: data
  })
}

export function ticketDefaultPic(data) {
  return request({
    url: '/do?c=420008',
    method: 'post',
    data: data
  })
}

export function updateTicketStatus(data) {
  return request({
    url: '/do?c=420006',
    method: 'post',
    data: data
  })
}

export function removeTicket(data) {
  return request({
    url: '/do?c=420007',
    method: 'post',
    data: data
  })
}

export function ticketDetail(data) {
  return request({
    url: '/do?c=420003',
    method: 'post',
    data: data
  })
}

export function editTicket(data) {
  return request({
    url: '/do?c=420004',
    method: 'post',
    data: data
  })
}

export function onSaleTicket(data) {
  return request({
    url: '/do?c=420011',
    method: 'post',
    data: data
  })
}

export function payInfo(data) {
  return request({
    url: '/do?c=420009',
    method: 'post',
    data: data
  })
}

export function VIPInfo(data) {
  return request({
    url: '/do?c=203003',
    method: 'post',
    data: data
  })
}

export function memberInfo(data) {
  return request({
    url: '/do?c=202013',
    method: 'post',
    data: data
  })
}

export function getPrice(data) {
  return request({
    url: '/do?c=701002',
    method: 'post',
    data: data
  })
}

export function payForOrder(data) {
  return request({
    url: '/do?c=701001',
    method: 'post',
    data: data
  })
}

export function ticketOrders(data) {
  return request({
    url: '/do?c=420017',
    method: 'post',
    data: data
  })
}

export function checkTicketLists(data) {
  return request({
    url: '/do?c=420016',
    method: 'post',
    data: data
  })
}

export function ticketDiscount(data) {
  return request({
    url: '/do?c=420005',
    method: 'post',
    data: data
  })
}

export function ticketOrderCancel(data) {
  return request({
    url: '/do?c=420021',
    method: 'post',
    data: data
  })
}
export function ticketBuyCancel(data) {
  return request({
    url: '/do?c=420020',
    method: 'post',
    data: data
  })
}

export function ticketPayAgain(data) {
  return request({
    url: '/do?c=420019',
    method: 'post',
    data: data
  })
}

// 超时计费模版
export function ticketChargeTemp(data) {
  return request({
    url: '/do?c=420104',
    method: 'post',
    data: data
  })
}
// 新增超时计费模版
export function ticketChargeTempAdd(data) {
  return request({
    url: '/do?c=420101',
    method: 'post',
    data: data
  })
}
// 编辑超时计费模版
export function ticketChargeTempEdit(data) {
  return request({
    url: '/do?c=420102',
    method: 'post',
    data: data
  })
}
// 删除超时计费模版
export function ticketChargeDel(data) {
  return request({
    url: '/do?c=420103',
    method: 'post',
    data: data
  })
}
// 门票销售明细 详情
export function ticketRecordDetail(data) {
  return request({
    url: '/do?c=420037',
    method: 'post',
    data: data
  })
}
// 退票
export function refundTicket(data) {
  return request({
    url: '/do?c=420028',
    method: 'post',
    data: data
  })
}
// 门票核销记录
export function chargeOffTicketList(data) {
  return request({
    url: '/do?c=420029',
    method: 'post',
    data: data
  })
}
// 离场确认结算
export function affirmOutCalculate(data) {
  return request({
    url: '/do?c=420031',
    method: 'post',
    data: data
  })
}
// 离场结算获取超时金额
export function outCalculate(data) {
  return request({
    url: '/do?c=420030',
    method: 'post',
    data: data
  })
}
// 订单详情
export function ticketOrderDetail(data) {
  return request({
    url: '/do?c=420032',
    method: 'post',
    data: data
  })
}
// 线下结算
export function offineCalculate(data) {
  return request({
    url: '/do?c=420033',
    method: 'post',
    data: data
  })
}
// 出入场记录
export function inOutRecord(data) {
  return request({
    url: '/do?c=921019',
    method: 'post',
    data: data
  })
}
// 出入场记录 离场
export function InOutLeave(data) {
  return request({
    url: '/do?c=921021',
    method: 'post',
    data: data
  })
}
// 出入场记录 导出
export function inOutRecordExport(data) {
  return request({
    url: '/do?c=921020',
    method: 'post',
    data: data
  })
}
// 门票销售明细 导出
export function ticketRecordExport(data) {
  return request({
    url: '/do?c=420034',
    method: 'post',
    data: data
  })
}
// 门票订单 导出
export function ticketOrderExport(data) {
  return request({
    url: '/do?c=420036',
    method: 'post',
    data: data
  })
}

